package com.matt.repository;

import com.matt.domain.ContractHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * **********************
 * Created by Ron
 * from com.matt
 * on 2018/6/19 0019.
 * **********************
 */
public interface ContractHistoryRepository extends JpaRepository<ContractHistory, String>,JpaSpecificationExecutor<ContractHistory> {

    List<ContractHistory> findByContractId(String contractId);

    List<ContractHistory> findByContractIdOrderByCreatedDesc(String contractId);

}
